package com.sg.util.XMLTools.entity;

import java.util.Map;
import java.util.List;

/**
 * xml节点实体
 * @author Lwt
 */
public class XMLNode {
	
	/**
	 * 节点属性
	 */
	private Map<String, String> attributes;
	
	/**
	 * xml子节点
	 */
	private List<XMLNode> childs;
	
	/**
	 * 节点标签名称
	 */
	private String nodeTag;
	
	/**
	 * 是否是父节点
	 */
	private boolean isParent;
	
	/**
	 * 节点文本
	 */
	private String nodeText;

	public Map<String, String> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, String> attributes) {
		this.attributes = attributes;
	}

	public List<XMLNode> getChilds() {
		return childs;
	}

	public void setChilds(List<XMLNode> childs) {
		this.childs = childs;
	}

	public String getNodeTag() {
		return nodeTag;
	}

	public void setNodeTag(String nodeTag) {
		this.nodeTag = nodeTag;
	}

	public boolean isParent() {
		return isParent;
	}

	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}

	public String getNodeText() {
		return nodeText;
	}

	public void setNodeText(String nodeText) {
		this.nodeText = nodeText;
	}
}
